import {createRouter, createWebHistory,RouteLocationNormalized,NavigationGuardNext} from 'vue-router'
import { EnumLocalStorageKeys } from '@/constants/EnumLocalStorageKey'
import { clearPending } from '@/axios'
const routes = [
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/main.vue')
    
  },
  // {
  //   path: '/chat',
  //   name: 'App',
  //   component: () => import('@/main.vue')
  // }
]

export const router = createRouter({
  history: createWebHistory(),
  routes,
  linkActiveClass: 'active-router'
})
router.beforeEach((to:RouteLocationNormalized,form:RouteLocationNormalized,next:NavigationGuardNext) => {
  next()
})
export default router
